//@json
function main(tbl){
	let cnd=Cnd.where("1","=",1)
	if(!isEmpty(tbl.name)){
		cnd.and("name","like",tbl.name+"%")
	}
	if(!isEmpty(tbl.status)){
		cnd.and("status","=",tbl.status)
	}
	return dao.query("sys_menu",cnd);
}